import java.util.*;


/**
 * @author 段宇浪
 */
public class TestDemo {
    private int a;

    public void setA(int a) {
        this.a = a;
    }

    @Override
    public String toString() {
        return "TestDemo{" +
                "a=" + a +
                '}';
    }

    public static void main(String[] args) {
        int[][] arr = {{1,2,3},{4,5,6}};
        for (int[] ints : arr) {
            for (int anInt : ints) {
                System.out.print(anInt + " ");
            }
            System.out.println();
        }
        int[][] arr2 = new int[2][];
        arr2[0] = new int[5];
        arr2[1] = new int[3];
        for (int[] ints : arr2) {
            for (int anInt : ints) {
                System.out.print(anInt + " ");
            }
            System.out.println();
        }
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.deepToString(arr));
        TestDemo t = new TestDemo();
        System.out.println(t);
    }
    public static void main15(String[] args) {
        int[] arr = {1,0,2,9,3,8,4,7,5,6};
        //System.out.println(Judge1(arr));
        //System.out.println(Judge2(arr));
        BubbleSort(arr);
        System.out.println(Arrays.toString(arr));
    }
    public static void BubbleSort(int[] arr) {
        for (int i = 0; i < arr.length - 1; i++) {
            boolean flg = true;
            for (int j = 0; j < arr.length - i - 1; j++) {
                if (arr[j] > arr[j + 1])
                {
                    flg = false;
                    int tmp = arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = tmp;
                }
            }
            if (true == flg) {
                break;
            }
        }
    }
    public static boolean Judge2(int[] arr) {
        for (int i = 0; i < arr.length - 1; i++) {
            if (arr[i] > arr[i + 1]) {
                return false;
            }
        }
        return true;
    }
    public static boolean Judge1(int[] arr) {
        int[] tmp = Arrays.copyOf(arr, arr.length);
        Arrays.sort(tmp);
        return Arrays.equals(tmp, arr);
    }
    public static void main14(String[] args) {
        int[] arr = {1,2,3,4,5,6,7,8,9};
        int ret = find(arr, 10);
        System.out.println(ret);
    }
    public static int find(int[] arr, int n) {
        int left = 0;
        int right = arr.length - 1;
        while (left <= right) {
            int mid = (left + right) >>> 1;
            if (n > arr[mid]) {
                left = mid + 1;
            } else if (n == arr[mid]) {
                return mid;
            } else {
                right = mid - 1;
            }
        }
        return -1;
    }
    public static void main13(String[] args) {
        int[] arr = {1,2,3,4,5,6,7,8,9,10};
        int[] ret = Dou(arr);
        System.out.println(Arrays.toString(ret));
        System.out.println(MyToString(arr));
    }
    public static String MyToString(int[] arr) {
        String str = "";
        str += "["+ arr[0];
        for (int i = 1; i < arr.length; i++) {
            str += ", " + arr[i];
        }
        str += "]";
        return str;
    }
    public static int[] Dou(int[] arr) {
        int[] tmp = new int[arr.length];
        for (int i = 0; i < arr.length; i++) {
            tmp[i] = arr[i] * 2;
        }
        return tmp;
    }
    public static void main12(String[] args) {
        System.out.println(steps(4));
    }

    public static int fi(int n) {
        return n;
    }
    public static int fire(int n) {
        return 1;
    }
    public static int steps(int n) {
        if (n == 1 || n == 2) {
            return n;
        }
        return steps(n - 1) + steps(n - 2);
    }
    public static void main11(String[] args) {
        hanoi(3, 'A', 'B', 'C');
    }
    public static void hanoi(int n, char A, char B, char C) {
        if (n == 1) {
            move(A, C);
            return;
        }
        hanoi(n - 1, A, C, B);
        move(A, C);
        hanoi(n - 1, B, A, C);
    }
    public static void move(char t1, char t2) {
        System.out.print(t1 + "->" + t2 + " ");
    }
    public static void main10(String[] args) {
        System.out.println("v   v");
        System.out.println(" v v");
        System.out.println("  v");
    }
    public static void main9(String[] args) {
        System.out.println("Practice makes perfect!");
    }
    public static void main8(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();

        int tmp1 = 1;
        int tmp2 = 1;
        int tmp3 = 1;
        for (int i = 3; i <= a; i++) {
            tmp3 = tmp1 + tmp2;
            tmp1 = tmp2;
            tmp2 = tmp3;
        }
        System.out.println(tmp3);
    }
    public static void main7(String[] args) {
        //func(123);
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        System.out.println(func1(a));
    }
    public static int func1 (int n) {
        if (n <= 9) {
            return n;
        }
        return n % 10 + func1(n / 10);
    }
    public static void func(int n) {
        if (n > 9) {
            func(n / 10);
        }
        System.out.println(n % 10);
    }
    public static void main6(String[] args) {
        System.out.println(factor(5));
    }
    public static int factor(int n) {
        int sum = 0;
        int tmp = 1;
        for (int i = 1; i <= n; i++) {
            tmp *= i;
            sum += tmp;
        }
        return sum;
    }
    public static void main5(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ret = maxNum(a, b);
        System.out.println(ret);
    }
    public static int maxNum(int a, int b) {
        return a > b ? a : b;
    }
    public static void main4(String[] args) {
        Scanner scan = new Scanner(System.in);

        Random ran = new Random();
        int randomNum = ran.nextInt(100) + 1;
        while (true) {
            int n = scan.nextInt();
            if (n > randomNum) {
                System.out.println("你猜大了");
            } else if (n < randomNum) {
                System.out.println("你猜小了");
            } else {
                System.out.println("你猜对了");
                break;
            }
        }
    }
    public static void main3(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        for (int i = 31; i >= 0; i -= 2) {
            System.out.print(((n >> i) & 1)+ " ");
        }
    }
    public static void main2(String[] args) {
        Scanner scan = new Scanner(System.in);
        int co = 0;
        int n = scan.nextInt();
        while (n != 0) {
            co++;
            n = n & (n - 1);
        }
        System.out.println(co);
    }
    public static void main1(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int co = 0;
        for (int i = 31; i >= 0; i--) {
            if ((1 & (n >> i)) == 1)
            {
                co++;
            }
        }
        System.out.println(co);
    }
}
